package com.dy.lock.screen.dao;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.CommonCommentInfo;
import com.dy.lock.screen.vo.CommonCommentLikeVo;

public interface CommonCommentDao extends BaseDao<CommonCommentInfo, String> {

	/**
	 * 通过id查询
	 * 
	 * @param cid
	 * @return
	 */
	public CommonCommentInfo queryByPrimaryKey(String cid);

	/**
	 * 通过素材评论编号查询普通评论列表
	 * 
	 * @param para
	 * @return
	 */
	public List<CommonCommentInfo> queryByCommentId(Map<String, Object> para);

	/**
	 * 假删除
	 * 
	 * @param commonInfo
	 * @return
	 */
	public int falseDelete(CommonCommentInfo commonInfo);

	/**
	 * 查询消息中的评论详情
	 * 
	 * @param id
	 * @return
	 */
	public CommonCommentLikeVo queryDetailByPrimaryKey(String id);

}
